package com.welab.pandahelper.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;

import com.welab.pandahelper.R;

public class MainActivity extends AppCompatActivity {

    private LinearLayout panda_bth;
    private LinearLayout cat_bth;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        panda_bth = (LinearLayout) findViewById(R.id.panda_helper);
        cat_bth = (LinearLayout) findViewById(R.id.cat_helper);

        panda_bth.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i = new Intent(MainActivity.this,HelperActivity.class);
                startActivity(i);
            }
        });

        cat_bth.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i = new Intent(MainActivity.this,CatHelperActivity.class);
                startActivity(i);
            }
        });


    }
}